package net.sf.rose.business.bean.control;

import java.util.ArrayList;
import java.util.List;

import net.sf.rose.business.bean.action.Action;

import org.simpleframework.xml.Attribute;
import org.simpleframework.xml.ElementList;

/**
 * @author fengjian
 * @since 2014-5-20
 */
public class TableBean {

	/** 行数 */
	@Attribute
	private int rows = 0;

	/** 数据源 */
	@Attribute
	private Action dataSource = null;

	/** 所有组件 */
	@ElementList(name = "controls", required = false)
	private List<ControlBean> controls = new ArrayList<ControlBean>();

	public int getRows() {
		return rows;
	}

	public void setRows(int rows) {
		this.rows = rows;
	}

	public Action getDataSource() {
		return dataSource;
	}

	public void setDataSource(Action dataSource) {
		this.dataSource = dataSource;
	}

	public List<ControlBean> getControls() {
		return controls;
	}

	public void setControls(List<ControlBean> controls) {
		this.controls = controls;
	}

}
